package demo3;

/**
 * @Author: XXHH
 * @CreateTime: 2024-12-07
 */


public class Cat extends Animal {
    public Cat(String name, int age) {
        super(name, age);

    }
    public void miaomiao(){
        System.out.println(this.name +"正在喵喵叫..");
    }
   /* @Override
    public void eat(){
        System.out.println(this.name + "正在吃猫粮...");
    }*/

    @Override
    public void eat() {
        System.out.println(this.name + "正在吃猫粮...");
    }
}

